VObject::DoKeyCommand

Section: ET++ method description (n)
Updated: automatically Mon Apr 8 20:17:57 1991
Index Return to Main Contents
 

NAME

VObject::DoKeyCommand - instance method  

TEMPLATE

commandToPerform = Command * DoKeyCommand(int keyCode, Point locatorPoint, Token inputToken)  

SPECIFIERS

public virtual  

DESCRIPTION

DoKeyCommand is called by the method DispatchEvents on normal ASCII key events. By default, the event is passed to the next event handler. If there is no next handler gNoChanges is returned. Method is sometimes overridden.  

ARGUMENTS

int keyCode

contains the code of the pressed key which is a copy of inputToken.Code
. Modifier keys (Shift, Ctrl or Meta) pressed together with the key have already been taken into account.
For example, if Shift and 'a' have been pressed then keyCode contains 'A'. If the Meta key is pressed then the key code is always incremented by 128 which allows to enter non-ASCII characters that are normally not accessible from a keyboard. If Meta and/or Ctrl have been pressed then the original code can be found out with the inputToken and the method Token::MapToAscii.
Point locatorPoint

see
method DispatchEvents
Token inputToken

see
method DispatchEvents
 

RETURN ARGUMENT

Command * commandToPerform

see
method DispatchEvents
 

CATEGORIES

event handling, overrider interface

 

FIRST DEFINITION

class VObject  

FILES

implementation:
VObject.C


 

Index

NAME
TEMPLATE
SPECIFIERS
DESCRIPTION
ARGUMENTS
RETURN ARGUMENT
CATEGORIES
FIRST DEFINITION
FILES

This document was created by man2html, using the manual pages.
Time: 00:40:22 GMT, March 30, 2022